﻿using System;
using System.Collections.Generic;

namespace CommunicationProtocol.dto.game
{
    public class DynamicPlant : Field
    {
        public DynamicPlant(short objectId, byte objectType, byte locationX, byte locationY) : base(objectId,
            objectType, locationX, locationY)
        {
        }

        public override void plant(DynamicPlant newPlant)
        {
            throw new NotSupportedException("不能在植物上面再种植植物");
        }

        public override List<DynamicPlant> allPlants()
        {
            throw new NotSupportedException("植物没有再包含植物");
        }
    }
}